package cyc.learn.mode.decorator.demo2;

public class EggDecorate implements AbsChineseHamburger{


    private AbsChineseHamburger ch;

    public EggDecorate(AbsChineseHamburger ch) {
        this.ch = ch;
    }

    @Override
    public void cost() {
        ch.cost();
        System.out.println("加蛋");
    }
}
